package com.example.daibanshiwu.mapper;

import com.example.daibanshiwu.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface MessageMapper {
    List<Message> selectMessagesAll(int sendUserId);

    int insertMessageMain(Message message);

    int insertMessageDetail(MessageChild messageChild);

    int insertFile(File file);

    List<Map<String,Object>> selectGroupsByLeaderId(int userId);

    List<Integer> selectGroupsMembers(int groupId);

    int updateExcel(File file);

    int updateFile(File file);

    File selectFileById(String id);
    File selectExcelById(String id);

    Map<String, Object> selectStatus(String id);

    List<ProcessingRecord> findProcessingRecordById(String id);

    List<GroupMember> findMembersByGroupIds(List<Integer> groupIds);

    ProcessingRecord getRecordFile(Integer id);

}
